package com.rnkrsoft.suyan.config.server.config.entity;

import com.rnkrsoft.framework.orm.PrimaryKey;
import com.rnkrsoft.framework.orm.jdbc.*;
import com.rnkrsoft.suyan.config.internal.enums.ProductStatus;
import com.rnkrsoft.suyan.config.internal.enums.YesOrNo;
import lombok.*;
/**
 * Created by woate on 2018/5/13.
 */
@Data
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "PROJECT_INFO", prefix = "TB")
@Comment("项目信息表")
public class ProjectInfoEntity extends BaseEntity {
    @PrimaryKey
    @StringColumn(name = "PROJECT_ID", nullable = false)
    @Comment("项目编号")
    String projectId;

    @StringColumn(name = "GROUP_ID")
    @Comment("组织编号")
    String groupId;

    @StringColumn(name = "ARTIFACT_ID")
    @Comment("组件编号")
    String artifactId;

    @StringColumn(name = "PROJECT_DESC", nullable = true)
    @Comment("项目描述")
    String projectDesc;

    @StringColumn(name = "ABSTRACT_PROJECT", nullable = false, defaultValue = "Y", enumClass = YesOrNo.class)
    @Comment("抽象项目")
    String abstractProject;

    @StringColumn(name = "ALLOW_PUSH", nullable = false, defaultValue = "Y", enumClass = YesOrNo.class)
    @Comment("允许项目推送")
    String allowPush;

    @NumberColumn(name = "PROJECT_STATUS", defaultValue = "1", enumClass = ProductStatus.class)
    @Comment("项目状态")
    Integer projectStatus;
}
